<template>
  <div>
    {{testFromZong}}<button @click="updateTest('a')">updateTest</button>

    <br> <br> <br> <br>

    {{amsg}}<button @click="updateA('a')">updateA</button>
  </div>
</template>

<script>
import {mapState,mapActions} from "vuex";
import {getBaseCategoryList,getBanners,getFloors} from "http/http"
export default {
  name: "test",
  computed:{
    // ...mapState(["test"])
    // ...mapState({testFromZong:"test"})
    ...mapState({
      testFromZong:function(state){
        //state:总仓库
        return state.test
      }
    }),
    ...mapState({
      amsg(state){
        return state.a.test
      }
    })
    /*amsg(){
        return this.$store.state.a.amsg
    }*/
  },
  methods:{
    ...mapActions(["updateTest","updateA"])
  },
  async created(){
    const body = await getFloors();
    console.log(body);
  }
}
</script>

<style scoped>

</style>